// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/** 新增调价商品 POST /fds/inventory/addChgPrice */
export async function addChgPriceUsingPOST(body: API.Pinyin_47, options?: { [key: string]: any }) {
  return request<API.Pinyin_48>('/fds/inventory/addChgPrice', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 新增商品报损 POST /fds/inventory/addLosses */
export async function addLossesUsingPOST(body: API.Pinyin_44, options?: { [key: string]: any }) {
  return request<API.Pinyin_45>('/fds/inventory/addLosses', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 调价审核 POST /fds/inventory/chgPriceCheckPur */
export async function chgPriceCheckPurUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.chgPriceCheckPurUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/chgPriceCheckPur', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 调价反审核 POST /fds/inventory/chgPriceUnCheckPur */
export async function chgPriceUnCheckPurUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.chgPriceUnCheckPurUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/chgPriceUnCheckPur', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 删除报损商品明细信息 POST /fds/inventory/deleteLosDetail */
export async function deleteLosDetailUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteLosDetailUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/inventory/deleteLosDetail', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出调价记录详情列表 POST /fds/inventory/exportChgDetail */
export async function exportChgDetailUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportChgDetailUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportChgDetail', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出调价记录列表 POST /fds/inventory/exportChgPrice */
export async function exportChgPriceUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportChgPriceUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportChgPrice', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出商品名统计汇总 POST /fds/inventory/exportGoodsSummary */
export async function exportGoodsSummaryUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportGoodsSummaryUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportGoodsSummary', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出历史库存-店面统计 POST /fds/inventory/exportHistInventoryStat */
export async function exportHistInventoryStatUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportHistInventoryStatUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportHistInventoryStat', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出历史库存-柜组统计 POST /fds/inventory/exportHistStStat */
export async function exportHistStStatUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportHistStStatUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportHistStStat', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出商品详情列表 POST /fds/inventory/exportInvDetail */
export async function exportInvDetailUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportInvDetailUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportInvDetail', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出库存统计-店面统计 POST /fds/inventory/exportInventoryStat */
export async function exportInventoryStatUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportInventoryStatUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportInventoryStat', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出报损记录详情列表 POST /fds/inventory/exportLosDetail */
export async function exportLosDetailUsingPOST1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportLosDetailUsingPOST1Params,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportLosDetail', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出商品报损记录列表 POST /fds/inventory/exportLosses */
export async function exportLossesUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportLossesUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportLosses', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出超龄库存列表 POST /fds/inventory/exportOverInventory */
export async function exportOverInventoryUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportOverInventoryUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportOverInventory', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出库存分布列表 POST /fds/inventory/exportPageInvDist */
export async function exportPageInvDistUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportPageInvDistUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportPageInvDist', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 导出统计汇总（除商品名） POST /fds/inventory/exportSummary */
export async function exportSummaryUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.exportSummaryUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/exportSummary', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取调价记录详情列表 POST /fds/inventory/getChgDetailList */
export async function getChgDetailListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getChgDetailListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultChgDetailDto_>('/fds/inventory/getChgDetailList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取调价记录信息 GET /fds/inventory/getChgPrice */
export async function getChgPriceUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getChgPriceUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_48>('/fds/inventory/getChgPrice', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取调价记录列表 POST /fds/inventory/getChgPriceList */
export async function getChgPriceListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getChgPriceListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultChgPriceDto_>('/fds/inventory/getChgPriceList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 历史库存-店面统计 GET /fds/inventory/getHistInventoryStat */
export async function getHistInventoryStatUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getHistInventoryStatUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult32>('/fds/inventory/getHistInventoryStat', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 历史库存-柜组统计 GET /fds/inventory/getHistStStat */
export async function getHistStStatUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getHistStStatUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult32>('/fds/inventory/getHistStStat', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 通过Id获取库存商品详情 GET /fds/inventory/getInventoryById */
export async function getInventoryByIdUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getInventoryByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_58>('/fds/inventory/getInventoryById', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取报损商品详情列表 POST /fds/inventory/getLosDetailList */
export async function getLosDetailListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getLosDetailListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultLosDetailDto_>('/fds/inventory/getLosDetailList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取商品报损记录信息 GET /fds/inventory/getLosses */
export async function getLossesUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getLossesUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.LossesDto>('/fds/inventory/getLosses', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取商品报损记录列表 POST /fds/inventory/getLossesList */
export async function getLossesListUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getLossesListUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultLossesDto_>('/fds/inventory/getLossesList', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 通过串码1/商品名Id/店铺Id/供应商Id获取库存商品信息 GET /fds/inventory/getPageBySingleCode */
export async function getPageBySingleCodeUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPageBySingleCodeUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult30>('/fds/inventory/getPageBySingleCode', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 商品名-统计汇总 GET /fds/inventory/getPageGoodsSummary */
export async function getPageGoodsSummaryUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPageGoodsSummaryUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult__2>('/fds/inventory/getPageGoodsSummary', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取库存分布列表 GET /fds/inventory/getPageInvDist */
export async function getPageInvDistUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPageInvDistUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult29>('/fds/inventory/getPageInvDist', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取库存统计-店面统计 GET /fds/inventory/getPageInventoryStat */
export async function getPageInventoryStatUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPageInventoryStatUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult32>('/fds/inventory/getPageInventoryStat', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 超龄库存列表 GET /fds/inventory/getPageOverInventoryList */
export async function getPageOverInventoryListUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPageOverInventoryListUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResultOverInventoryDto_>('/fds/inventory/getPageOverInventoryList', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 统计汇总-除商品名统计 GET /fds/inventory/getPageSummary */
export async function getPageSummaryUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPageSummaryUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.PageResult32>('/fds/inventory/getPageSummary', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 报损审核 POST /fds/inventory/lossesCheckPur */
export async function lossesCheckPurUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.lossesCheckPurUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/lossesCheckPur', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 报损反审核 POST /fds/inventory/lossesUnCheckPur */
export async function lossesUnCheckPurUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.lossesUnCheckPurUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<any>('/fds/inventory/lossesUnCheckPur', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 调价详情-撤销 POST /fds/inventory/revokeChgChgPrice */
export async function revokeChgDetailUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.revokeChgDetailUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/inventory/revokeChgChgPrice', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 报损-撤销 POST /fds/inventory/revokeLosDetail */
export async function revokeLosDetailUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.revokeLosDetailUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/inventory/revokeLosDetail', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 设置预警天数 POST /fds/inventory/setAlertDay */
export async function setAlertDayUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.setAlertDayUsingPOSTParams,
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/inventory/setAlertDay', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 编辑调价详情 POST /fds/inventory/updateChgDetail */
export async function updateChgDetailUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateChgDetailUsingPOSTParams,
  body: API.Pinyin_83[],
  options?: { [key: string]: any },
) {
  return request<boolean>('/fds/inventory/updateChgDetail', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  });
}
